package com.heima.apis.channel.fallback;


import com.heima.apis.channel.IChannelClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

/**
 * 频道服务降级策略
 */
@Component
public class IChannelClientFallback implements IChannelClient {


    /**
     * 增加频道服务降级
     *
     * @param
     * @return
     */
    @Override
    public ResponseResult findAll() {
        return ResponseResult.errorResult(AppHttpCodeEnum.DATA_NOT_EXIST,"获取数据失败");
    }
}
